package cn.wolfcode.cms.service.impl;

import cn.wolfcode.cms.domain.SystemLog;
import cn.wolfcode.cms.mapper.SystemLogMapper;
import cn.wolfcode.cms.service.ISystemLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class SystemLogServiceImpl implements ISystemLogService {

    @Autowired
    private SystemLogMapper systemLogMapper;

    public void save(SystemLog entity) {
        systemLogMapper.insert(entity);

    }

   /* public void update(Department entity) {
        departmentMapper.updateByPrimaryKey(entity);
    }

    public void delete(Long id) {
        departmentMapper.deleteByPrimaryKey(id);
    }

    public Department get(Long id) {
        return departmentMapper.selectByPrimaryKey(id);
    }

    public List<Department> list() {
        return departmentMapper.selectAll();
    }

    public PageResult query(QueryObject qo) {
        //查总数
        int total = departmentMapper.queryForCount(qo);
        if(total == 0){
            return new PageResult();
        }
        //查数据
        List<Department> rows = departmentMapper.queryForList(qo);
        return new PageResult(total, rows);
    }
*/
}
